package com.example.lockfulldemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("optimistic_lock_demo")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OptimisticLockDemoEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer num;
    @Version
    private Integer version;
}
